﻿@model RH.Web.ViewModels.UtilityModels.ListConfig
@using RH.Web.Utility;
@using RH.Web.ViewModels
@{    
	String pageTitle = "Lead List";
    ViewBag.Title = Html.GetPageTitle(pageTitle);
	String _EditUrlFormat = Url.PrivateUrl("Edit", "Lead") + "/{0}";
	///Bind Lead ListConfig
	///Following ListConfig binding needs to be edited according to the query result and need.
	RH.Web.ViewModels.UtilityModels.ListConfig _ListConfig = RH.Web.ViewModels.UtilityModels.ListConfigBuilder.Build(
		@"LeadTypeID {LeadTypeID}				
		, UserID {UserID}				
		, ProductID {ProductID}				
		, InterestedOn {InterestedOn}				
		, WantLoan {WantLoan}				
		, PreferredLocations {PreferredLocations}				
		, PreferredSizeFrom {PreferredSizeFrom}				
		, PreferredSizeTo {PreferredSizeTo}				
		, PreferredPlotSizeFrom {PreferredPlotSizeFrom}				
		, PreferredPlotSizeTo {PreferredPlotSizeTo}				
		, InterestLevel {InterestLevel}				
		, InterestedProjectTypes {InterestedProjectTypes}				
		, Feedback {Feedback}				
		, VerificationType {VerificationType}				
		, VerificationMethod {VerificationMethod}				
		, Comment {Comment}				
		, CreatedOn {CreatedOn}				
		, VerifiedOn {VerifiedOn}				
		"
        , Model.DataSource, _EditUrlFormat); 
}
<div class="rh-page-heading">
    <h1>@pageTitle</h1>
    <div>
        Add/Edit and manage Lead.
    </div>
</div>
<div class="rh-page-content">
	<div class="panel panel-success">
        <div class="panel-heading">
            <div class="pull-left"><h4>List of Lead</h4></div>
            <div class="pull-right"><a class="btn btn-success" href="@Url.PrivateUrl("Edit", "Lead")"><i class="glyphicon glyphicon-plus"></i> Add New Lead</a></div>
            <div class="clearfix"></div>
        </div>
        <div class="panel-body">            
            @Html.Partial("_DataTableList", Model)
        </div>
    </div>
	@if (Model.Pager != null) {    
        @Html.Partial("_Pager", Model.Pager)
    }
</div>

    


